/**
 * Copyright 20013-2013 Brin.com
 * All rights reserved.
 * 
 * @project
 * @author Brin
 * @version 1.0
 * @data 2013-06-18
 */
package com.brin.code.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.brin.code.dao.SampleMapper;
import com.brin.code.model.pojo.Sample;
import com.brin.code.service.SampleEntityService;
import com.brin.core.base.service.EntityService;

/**
 * 
 * @author Brin
 * @description SampleEntityServiceImpl
 * 
 */

@Service
public class SampleEntityServiceImpl extends EntityService implements SampleEntityService {

	@Autowired
	private SampleMapper sampleMapper;
	
	@Override
	public boolean addSample(Sample sample) {
		return sampleMapper.addSample(sample) > 0 ? true : false;
	}
	
	//@Transactional(propagation=Propagation.REQUIRED)
	
	public SampleMapper getSampleMapper() {
		return sampleMapper;
	}
	public void setSampleMapper(SampleMapper sampleMapper) {
		this.sampleMapper = sampleMapper;
	}
}
